package messagesPacks;

import java.util.HashMap;
import java.util.Hashtable;

import Entity.Book;
import Entity.User;

import messagesPacks.GenericMessage.msgType;

public class BookSubjectMessage extends GenericMessage 
{
	private static final long serialVersionUID = 1L;
	
	private Hashtable<Integer,String> BookSubjects; 
	private String ISBN;
	
	public BookSubjectMessage()
	{
		this.type = msgType.BookSubjectsMSG;
		BookSubjects = new Hashtable<Integer,String>();
		
	}
	
	public String getISBN()
	{
		return ISBN;
	}

	public void setISBN(String ISBN) 
	{
		this.ISBN = ISBN;
	}
	
	
	public Hashtable<Integer,String> getBookSubjects()
	{
		return this.BookSubjects;
	}
	
	public void setBookSubjects(Hashtable<Integer,String> subjects)
	{
		if(!subjects.isEmpty())
		  {
			this.BookSubjects.putAll(subjects)  ; 
		  }
	}
}
